package com.xyy.saas.payment.dao.model;

import lombok.Data;

import java.util.Date;
import java.io.Serializable;

@Data
public class SeparateOrder implements Serializable {
    private static final long serialVersionUID = -81341152214746102L;

    /**
     * 原始交易单号前缀
     */
    public static final String ORIGINAL_SEPARATENO_PREFIX = "ORI_";

    /**
     * 处理中
     */
    public static final String STATUS_CREATE = "create";
    /**
     * 已完成
     */
    public static final String STATUS_FINISH = "finish";
    /**
     * 无退款
     */
    public static Byte REFUND_STATUS_NONE = 0;
    /**
     * 有退款
     */
    public static Byte REFUND_STATUS_HAVE = 1;

    private Long id;

    private String separateNo;
    /**
     * 入账方用户id
     */
    private String custNoIn;
    /**
     * 商户id（出账方）
     */
    private String custMerchant;
    /**
     * 交易金额
     */
    private Integer tradeAmount;
    /**
     * 结算单号
     */
    private String settleNo;

    private String businessOrderNo;
    /**
     * 备注信息
     */
    private String extra;

    private String status;

    /**
     * 是否有退款(0 无退款 1已退款)
     */
    private Byte refund;
    /**
     * 退款/撤销单号
     */
    private String refundSettleNo;

    /**
     * 交易类型
     */
    private Integer tradeCode;

    /**
     * 场景
     */
    private Integer bizCode;

    /**
     * 业务单号
     */
    private String bizNo;

    /**
     * 备注
     */
    private String remark;

    private Date ctime;

    private Date utime;
}